<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    function deepClone(obj){
        if(obj===null || typeof obj !== 'object'){
            return obj;
        }
        if(Array.isArray(obj)){
            return obj.map(item=>deepClone(item));
        }
        const copy={};
        for(const key in obj){
            if(obj.hasOwnProperty(key)){
                copy[key]=deepClone(obj[key]);
            }
        }
        return copy;
    }
    const orifinal={
        name:'cli',
        age:20,
        nucc:['read','tree'],
        address:{
            city:{
                city:'beijing',
                fle:123123
            }
        }
    }
    const deepCopy=deepClone(orifinal);
    const idContent=deepClone(orifinal,deepCopy)
    const idDifferen=orifinal!==deepCopy;
    console.log(idDifferen)
    console.log(idContent);
</script>
</html>